package com.hzhr.iot.user.sdk.model.action;

import com.hzhr.iot.core.annotation.CygModel;
import com.hzhr.iot.core.annotation.CygProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

@ApiModel(value = "ActionModel", description = "动作模型")
public class ActionModel {
    @ApiModelProperty(value = "说明 : 编号", required = true)
    @CygProperty(show = "", entityProp = "id")
    private Integer id;

    @ApiModelProperty(value = "说明 : 名称(show_info=true时展示)", required = true)
    @CygProperty(show = "_show_info", entityProp = "name")
    private String name;
    @ApiModelProperty(value = "说明 : 代码(show_info=true时展示)")
    @CygProperty(show = "_show_info", entityProp = "code")
    private String code;
    @ApiModelProperty(value = "说明 : 链接地址(show_info=true时展示)")
    @CygProperty(show = "_show_info", entityProp = "url")
    private String url;
    @ApiModelProperty(value = "说明 : 类型(show_info=true时展示; user_service.options.code, typecode = 'ACTION_TYPE')", required = true)
    @CygProperty(show = "_show_info", entityProp = "type")
    private String type;
    @ApiModelProperty(value = "说明 : 级数(show_info=true时展示)", required = true)
    @CygProperty(show = "_show_info", entityProp = "level")
    private Integer level;
    @ApiModelProperty(value = "说明 : 上级编号(show_info=true时展示; user_service.action.id)", required = true)
    @CygProperty(show = "_show_info", entityProp = "parentId")
    private Integer parentId;
    @ApiModelProperty(value = "说明 : 排序(show_info=true时展示; 从小到大)")
    @CygProperty(show = "_show_info", entityProp = "sort")
    private Integer sort;
    @ApiModelProperty(value = "说明 : 应用代码(show_info=true时展示; 1 iot平台 2 慧燃通)")
    @CygProperty(show = "_show_info", entityProp = "appCode")
    private Integer appCode;
    @ApiModelProperty(value = "说明 : 用户编号(show_info=true时展示)")
    @CygProperty(show = "_show_info", entityProp = "")
    private Integer userId;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public Integer getLevel() {
        return level;
    }

    public void setLevel(Integer level) {
        this.level = level;
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }


    public Integer getAppCode() {
        return appCode;
    }

    public void setAppCode(Integer appCode) {
        this.appCode = appCode;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }
}

